/*
************************************************************************************
  * @author  ZLP
  * @version 1.0
  * @date    2024.1.16
************************************************************************************
*/

#include "Console.h"

extern bool flag;

/***
 * @param
 * @brief
 * help ----- Remind Command
 * DEBUG ON ------ open log
 * DEBUG OFF ------ closed log
 * LED ON ------ open led
 * LED OFF ------ Closed led
*/
void Console_Run(void)
{
	char Array[200] = {0};
	if(flag)
	{
		strcpy(Array,Conse_Info.Arry);
		memset(Conse_Info.Arry, 0, sizeof(LEN_MAX));
		flag = false;

        if(strncmp(Array,"help",4) == 0)
        {
            printf("\r\nDEBUG ON  ------ open log \r\n");
            printf("DEBUG OFF ------ closed log \r\n");
            printf("LED ON    ------ open led \r\n");
            printf("LED OFF   ------ Closed led \r\n");

        }
		if(strncmp(Array,"LEDDEBUG ON",11) == 0)
		{
			("LED OK!\r\n");
		}
	}


}
